package me.haoliang

/**
  * 抽象类demo
  * author: planck 
  * createTime: 2016/10/14.
  */
abstract class AbstractScala {
  var name:String
  var age:Int
  def say
}

class Human extends AbstractScala{
  override var name: String = "luhui"
  override var age: Int = 1207

  override def say: Unit = {
    println(name+"...")
  }
}

object Human{
  def main(args: Array[String]): Unit = {
    val human = new Human
    human.say
  }
}

